<%@ page language="java"  pageEncoding="utf-8"%>
<%@include file="/WEB-INF/commons/taglibs.jsp" %>
<input type="hidden" name="pageNo" id="pageNo" value="${page.pageNo}"/>
<input type="hidden" name="pageSize" id="pageSize" value="${page.pageSize}"/>
<input type="hidden" name="orderBy" id="orderBy" value="${page.orderBy}"/>
<input type="hidden" name="order" id="order" value="${page.order}" />
共有${page.totalCount }条记录，第${page.pageNo }页, 共有 ${page.totalPages}页
<a href="javascript:GrayPlane.jumpPage(1)">首页</a>
<c:if test="${page.isHasPre}"><a href="javascript:GrayPlane.jumpPage(${page.prePage })">上一页</a> </c:if>
<c:if test="${page.isHasNext}"><a href="javascript:GrayPlane.jumpPage(${page.nextPage })">下一页</a></c:if>
<a href="javascript:GrayPlane.jumpPage(${page.totalPages })">末页</a>
<!--
				<a href="#">&lt; 上一页</a> <span>1</span> <a href="#">2</a><a
					href="#">3</a><a href="#">4</a> <a href="#">5</a> ... <a href="#">6</a>
				<a href="#">下一页 &gt;</a> <i>共 100 页 到第 <input type="text" /> 页<button></button></i>
-->	
<%-- 
<c:set var="totalPages" 
	value="${(page.totalPages>2000)?2000:(page.totalPages) }"></c:set>
<div class="page">
	<c:choose>
		<c:when test="${not empty param.pagingUrl && totalPages > 1 }">
			<a class="home_page" href="${param.pagingUrl}-1.html">首页</a>
			<a class="end_page"
				href="${param.pagingUrl}-${((page.pageNo)-1)>0?(page.pageNo)-1:(page.pageNo)}.html">上一页</a>
			<c:choose>
				<c:when test="${page.pageNo eq 1}">
					<a class="this_page" href="${param.pagingUrl}-1.html">1</a>
				</c:when>
				<c:otherwise>
					<a href="${param.pagingUrl}-1.html">1</a>
				</c:otherwise>
			</c:choose>
			<c:choose>
				<c:when test="${totalPages>0}">
					<c:choose>
						<c:when test="${page.pageNo<10}">
							<c:forEach var="i" begin="2" end="${page.pageNo}">
								<c:choose>
									<c:when test="${page.pageNo eq i }">
										<a class="this_page" href="${param.pagingUrl }-${i}.html">${i}</a>
									</c:when>
									<c:otherwise>
										<a href="${param.pagingUrl }-${i}.html">${i}</a>
									</c:otherwise>
								</c:choose>
							</c:forEach>
						</c:when>
						<c:otherwise>
							<span>...&nbsp;</span>
							<c:forEach var="i" begin="${page.pageNo-4}" end="${page.pageNo}">
								<c:choose>
									<c:when test="${page.pageNo eq i }">
										<a class="this_page" href="${param.pagingUrl }-${i}.html">${i}</a>
									</c:when>
									<c:otherwise>
										<a href="${param.pagingUrl }-${i}.html">${i}</a>
									</c:otherwise>
								</c:choose>
							</c:forEach>
						</c:otherwise>
					</c:choose>
					<c:choose>
						<c:when test="${page.pageNo>=totalPages-4  || totalPages-4<=0}">
							<c:forEach var="i" begin="${page.pageNo+1}" end="${totalPages}">
								<a href="${param.pagingUrl }-${i}.html">${i}</a>
								<c:choose>
									<c:when test="${page.pageNo eq i }">
										<a href="${param.pagingUrl }-${i}.html">${i}</a>
									</c:when>
								</c:choose>
							</c:forEach>
						</c:when>
						<c:otherwise>
							<c:forEach var="i" begin="${page.nextPage}"
								end="${page.pageNo+4}">
								<c:choose>
									<c:when test="${page.pageNo eq i }">
										<a class="this_page" href="${param.pagingUrl }-${i}.html">${i}</a>
									</c:when>
									<c:otherwise>
										<a href="${param.pagingUrl }-${i}.html">${i}</a>
									</c:otherwise>
								</c:choose>
							</c:forEach>...&nbsp;<a href="${param.pagingUrl }-${totalPages}.html">${totalPages}</a>
						</c:otherwise>
					</c:choose>
					<a	href="${param.pagingUrl }-${(page.nextPage) < totalPages?page.nextPage: totalPages}.html">下一页</a>
					<a	href="${param.pagingUrl }-${totalPages}.html">末页</a>
						共${totalPages}页${page.totalCount}条
				</c:when>
			</c:choose>
		</c:when>
	</c:choose>
</div>
--%>